﻿@model GongXianDCUI.Models.Funcitions
@{
    ViewBag.Title = Model.FunctionName;
    GongXianDCUI.Models.Article article = ViewBag.Article as GongXianDCUI.Models.Article;
}
<link href="~/content/dianli/css/lh.css" rel="stylesheet" type="text/css" />
<style>
.uu{
	margin-left:25px;
	display:none;
}
.uu a{
	font-size:12px;
}
.uuspan{
	font-size:20px;
	top:12px;
	float:left;
}
 
</style>
<script>
function bg(id)
{
	var	iss=$("."+id).css("display")=="none"?"block":"none";
	$("."+id).css("display",iss);
}
$(function(){
	bg(@Model.ChildrenID);
});
</script>
<div class="bg">
    <div class="nt">
        <div class="Main">
            <div class="nr">
                <div id="leftMenus" class="nleft">
                    <div class="nlt">
                        @Model.FunctionName<br />
                        <span>NEWS</span>
                    </div>
                  @foreach (GongXianDCUI.Models.Funcitions item in Model.Childrens)
                    {
						GongXianDCUI.BLL.FunctionsBLL bll=new GongXianDCUI.BLL.FunctionsBLL(); 
						List<GongXianDCUI.Models.Funcitions>list=bll.GetFuncitionsList(item.FunctionId);
						string ab= item.FunctionName == Model.ChildrenName?"nleftGaoLiang":"";
						if(list.Count<1){
								
								<a class="@ab" href="~/FenBuList/ArticleList/@item.FunctionId">@item.FunctionName</a>
						}
						else{
							<a class="@ab" href="javascript:bg(@item.FunctionId)"><span class="uuspan">△</span>@item.FunctionName</a>
							<ul class="@item.FunctionId  uu">
								 @foreach (var fun in list)
								 {
									string styles= ViewBag.miniName+""==fun.FunctionName?"nleftGaoLiang":"";
									<li>
										<a class="@styles" href="~/FenBuList/ArticleList/@fun.FunctionId">@fun.FunctionName</a>
									</li>
								}
							</ul>
						}
                    }
                </div>
                <div class="nright">
                    <div class="wz">
                        <img src="~/content/dianli/images/wz.jpg" /><span>
                            <a href="~/home/index">首页</a>
                            <span style="padding-right:5px;padding-left:5px;">&gt;</span>
                            <a href="~/FenBuList/ArticleList/@Model.FunctionId">@Model.FunctionName</a>
                            <span style="padding-right: 5px; padding-left: 5px;">&gt;</span>@Model.ChildrenName
                        </span>
                    </div>
                    <div class="nhx">
                    </div>
                    <div style="margin-bottom:20px;margin-top:20px;">
                        <div style="font-family: 宋体; font-size: 20px; color: #000; text-align:center;font-weight:bold;">@article.title</div>
                        <div style="text-align:right;color:#a8a8a8;margin-top:10px;">发布人：@article.issuer &nbsp;&nbsp;发布时间：@article.pubdate</div>
                    </div>
                    <div style="font-family:宋体;font-size:12px;color:#000;">
                        @MvcHtmlString.Create(article.content)
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

